/*
 * Part of the ACID Project
 * Developed in 2011 by Morgan Taschuk
 */
package acid.spring.jdbc.services;

import acid.spring.OrganismService;
import acid.spring.db.Organism;
import acid.spring.jdbc.repositories.OrganismRepository;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author morgan
 */
@Service
public class JdbcOrganismService implements OrganismService
{

    @Autowired
    private OrganismRepository organismRepository;

    @Override
    @Transactional(readOnly = true)
    public List<Organism> listAllOrganisms()
    {
        return organismRepository.listAllOrganisms();
    }

}
